home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Format 25
/
PCFormat 1993-10.iso
/
UTILS.ZIP
/
CHKEX.BAT
next >
Wrap
DOS Batch File
|
1991-03-22
|
541b
|
14 lines
@echo off
if "%1"=="" goto help
if exist %1 echo %1 is a diskfile
if not exist %1 if not exist %1\nul echo %1 does not exist
if not exist %1 if exist %1\nul if exist %1\*.* echo %1 is a non-empty subdirectory
if not exist %1 if exist %1\nul if not exist %1\*.* echo %1 is an empty subdirectory
goto end
:help
echo CHKEX by Jim Groeneveld, NL, 21/3-91.
echo Checks existence (or not) of some name as a disk file or subdirectory.
echo Syntax: CHKEX name
echo Output: textual report of existence, adapt for specific purposes.
:end